package com.ndp.fb.rdb.model;

import com.ndp.fb.rdb.annotation.Column;
import com.ndp.fb.rdb.annotation.ColumnType;
import com.ndp.fb.rdb.annotation.Table;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import java.io.Serializable;

/**
 * Created by Hermen on 2015/1/26.
 */
@Setter
@Getter
@NoArgsConstructor
//union query
@Table("country_code")
public class AdGeolocation implements Serializable {
    @Column(value = "c_id", type = ColumnType.Long)
    private Long id;
    @Column("c_code")
    private String countryCode;
    @Column("c_name")
    private String name;
    @Column(value = "supports_region", type = ColumnType.Boolean)
    private Boolean supportsRegion;
    @Column(value = "supports_city", type = ColumnType.Boolean)
    private Boolean supportsCity;
    @Column("c_key")
    private String key;
    @Column("c_type")
    private String type;
    @Column(value = "fb_users_number", type = ColumnType.Long)
    private Long fbUsersNumber;
}
